<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
	<script language="javascript">
function checkSearch()
{
	if($('#searchKey').val()=='')
	{
		alert('请输入要搜索的关键词！');
		return false;
	}
	return true;
}
</script>


<div id="left">
<img border="0" src="{$this->data['baseurl']}images/3bu.gif" width="190" alt="{$this->data['site']['site_name']}">	
<div class="search border4">
	<ul>
		<form method="post" action="{url('Default','List')}">
			<input type="text" name="k" class="searchKey" id="searchKey" autocomplete="off" /><input type="submit" value="搜索" onclick="return checkSearch();"/>
		</form>
	</ul>
</div>
<div class="indexinfo mt10 border4">
	{if $this->data['user']}
	<div class="userbox">
		<div class="userlogo">
		<img src="{$this->data[user]['logo']}" width="60" height="60" />
		</div>
		<div class="userinfo">
			<ul>
			<li>欢迎您，<a href="{url('User','Index')}">{$this->data['user']['username']}</a></li>
			{if $this->data['return']['rate']>0}<li>账户余额：<a href="{url('Return','Index')}">{$this->data['user']['money']}</a></li>
			<li><a href="{url('Return','Edit')}">申请提现</a> <a href="{url('Return','Index')}">我的返现</a></li>
			{else}
			<li><a href="{url('Post','Edit')}">发表帖子</a> <a href="{url('Post','Product')}">分享商品</a></li>
			{/if}
			</ul>
		</div>
	</div>
	<div class="loginbox"><button class="login_btn" onclick="document.location='{url('User','Logout')}'">退出登录</button></div>
	{else}
	<div class="loginbox"><button class="login_btn" onclick="document.location='{$this->data['loginUrl']}'">会员登录</button></div>
	{/if}
</div>
	
{RecentView(5,array('pic_url','num_iid','title','price','nick'))}
{if !empty($pvRecentViewList)}
<div class="cat border1 mt10">
	<h2>最近成交商品</h2>
	<ul>
	<!--{loop $pvRecentViewList $k $item}-->
	<li><a href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" title="{strip_tags($item['title'])}" target="_blank">{strip_tags($item['title'])}</a><strong>￥{strip_tags($item['price'])}</strong></li>
	<!--{/loop}-->
	</ul>
</div>
{/if}
{ProductList(array('sort'=>commissionNum_desc,'page_no'=>1,'page_size'=>7,'keyword'=>$cat['name']))}
	{if !empty($pvProductList)}
<div class="cat border1 mt10">
	<h2>淘宝热卖商品</h2>
	<ul>
	<!--{loop $pvProductList $pk $item}-->
		
			<li><a href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}"title="{strip_tags($item['title'])}" target="_blank" onfocus="this.blur()">{strip_tags($item['title'])}</a><strong>￥{strip_tags($item['price'])}</strong>
					
			</li>
			<!--{/loop}-->
							</ul>
		</div>
		{else}
{RecentClick(7,array('pic_url','num_iid','title','price','nick'))}
{if !empty($pvRecentViewList)}
  
<div class="cat border1 mt10">
	<h2>淘宝热卖商品</h2>
	<ul>  <!--{loop $pvRecentViewList $k $item}-->
      	<li>  <a href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{strip_tags($item['title'])}</a>
   <strong>￥{strip_tags($item['price'])}</strong>	</li>
     <!--{/loop}-->	</ul>
		</div>
   {/if}							
								
	{/if}
						
{if !empty($comdata['leftCategoryList'])}
<div class="cat border1 mt10">
	<h2>全部分类导航</h2>
	<ul>
	<!--{loop $comdata['leftCategoryList'] $k $cat}-->
	<li class="{if $k%5==4}split {/if}{if $cat['id']==50008165 || $cat['id']==1512 || $cat['id']==50010388 || $cat['id']==16 || $cat['id']==30 ||$cat['id']==50013864}red strong {/if}"><a href="{url('Default','List',array('c'=>$cat['id']))}" title="{$cat['name']}">{$cat['name']}</a></li>
	<!--{/loop}-->
	</ul>
</div>
{/if}
</div>